function plot_figure(chromosome,nObj, nVar,pop)
chromosomea= chromosome(:,nVar+3);
chromosomeb = chromosome(:,nVar+4);
chromosome(:,nVar+3) = chromosomeb;
chromosome(:,nVar+4) = chromosomea;
if nObj==4
   
         figure(1);
        for k=1:pop
        if chromosome(k,nVar+1)<10^13 && chromosome(k,nVar+3)<10^13
            plot(chromosome(k,nVar + 1),chromosome(k,nVar + 3),'g*');
            hold on
            plot(chromosome(k,nVar + 2),chromosome(k,nVar + 4),'r*');
            hold on   
        end
        axis([0,3*10^8,-5*10^6,-0.5*10^6])
        end
        figure(2);
        for k=1:pop
        if chromosome(k,nVar + 2)-chromosome(k,nVar + 1)>0&chromosome(k,nVar + 4)-chromosome(k,nVar + 3)>0& chromosome(k,nVar+1)>-10^13 & chromosome(k,nVar+3)>-10^13
            rectangle('position',[chromosome(k,nVar + 1),chromosome(k,nVar + 3),chromosome(k,nVar + 2)-chromosome(k,nVar + 1),chromosome(k,nVar + 4)-chromosome(k,nVar + 3)]);
            hold on
        end  
        end
        axis([0,3*10^8,-5*10^6,-0.5*10^6])
    hold off
 end

